# -*- coding:utf-8 -*-
'''
@Author: lindes
'''
from rest_framework import serializers

from .models import UserProfile

class UserSerializerLite(serializers.ModelSerializer):
    class Meta:
        model = UserProfile
        fields = ('id', 'name', 'photo')

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserProfile
        fields = ('id', 'name', 'gender', 'email', 'photo', 'add_time')